-- GENERATED SPELL FOR [High Priest Mu'funu] --


function spell0_28752(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(20820,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28752', 2500, 1)
end

function spell1_28752(pUnit, Event) --@Power Word: Shield,n/a--
pUnit:FullCastSpellOnTarget(11974,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28752', 30259, 1)
end

function spell2_28752(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(11640,pUnit)
pUnit:RegisterEvent('Sorts_28752', 15000, 1)
end

function Sorts_28752(pUnit, Event)
local choix_sorts_28752 = math.random(0, 2)
if choix_sorts_28752 == 0 then
pUnit:RegisterEvent('spell0_28752', 1, 1)
end
if choix_sorts_28752 == 1 then
pUnit:RegisterEvent('spell1_28752', 1, 1)
end
if choix_sorts_28752 == 2 then
pUnit:RegisterEvent('spell2_28752', 1, 1)
end
end

function mob28752_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28752', math.random(1500, 3000), 1)
end

function mob28752_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28752_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28752_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28752, 1, 'mob28752_Action')
RegisterUnitEvent(28752, 2, 'mob28752_Leave')
RegisterUnitEvent(28752, 3, 'mob28752_Kill')
RegisterUnitEvent(28752, 4, 'mob28752_Die')
